#ifndef VIEWER_H
#define VIEWER_H

#include "Square.h"

class Viewer{
 public:
   //! Constructor
   Viewer();
   ~Viewer();
 
   // gl stuff
   void init(int w, int h);
   void display() const;
   void updateScene();
   void reshape(int w, int h);
   
   // events
   void mousePressed(int button, int state, int x, int y);
   void mouseMoved(int x, int y);
   void keyPressed(unsigned char key, int x, int y);
   
 private:
   void drawRedSquare() const;
   float _halfSize;
   bool _growing;
   bool _out;
   Square _square;
};

#endif
